Page({
  data: {
    notices: []
  },
  onLoad() {
    // wx.utils.toast('页面加载成功')
    this.getNotices()

  },
  async getNotices() {
    const { code, data: notices } = await wx.http.get('/announcement')
    if (code !== 10000) return wx.utils.toast('列表获取失败')
    this.setData({
      notices: notices
    })
  }
})
